<?php
	 $url= Router::url(array('controller'=>'deals','action'=>'widget', 'user'=>$this->params['named']['user'], 'city_name'=>$this->params['named']['city'], 'size' => $this->params['named']['size'], 'color' => $this->params['named']['color']), true);
?>
document.write('<iframe src="<?php echo $url;?>" width="<?php echo $affiliateWidgetSize['AffiliateWidgetSize']['width']; ?>" scrolling="no" height="<?php echo $affiliateWidgetSize['AffiliateWidgetSize']['height']; ?>" class="widget-iframe widget-iframe-<?php echo $affiliateWidgetSize['AffiliateWidgetSize']['id']; ?>" style="border:none; margin:0 auto; width:100%;" /></iframe>');